﻿using Microsoft.AspNetCore.Http;

namespace Xman.WebApi.Filters.Model;
public class ResultWrapper
{
    public ResultWrapper(int status = StatusCodes.Status200OK, string message = "", object? result = null)
    {
        Result = result;
        Meta = new Meta { Message = message, Status = status };
    }

    public object? Result { get; set; }

    public Meta Meta { get; set; }
}

public class Meta
{
    public string Message { get; set; }
    public int Status { get; set; }
}
